package com.jiutong.dao.jiutongUser;

import com.jiutong.pojo.Product;
import com.jiutong.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * Created by sty on 2017/2/23.
 */
public interface UserMapper {
    @Select("select * from 9tong_user where id = #{id}")
    User findById(@Param("id") int id);

    @Update("insert into 9tong_user(uid,chineseName) values(#{uid},#{chineseName})")
    int save(@Param("uid") int uid, @Param("chineseName") String chineseName);
}
